package com.hui.stock;
import com.hui.stock.config.SwaggerConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;

@SpringBootApplication
@MapperScan("com.hui.stock.mapper")//扫描持久层的mapper接口，生成代理对象，并且维护到Spring的IOC容器中
@Import({SwaggerConfiguration.class})//将swagger配置类导入当前ioc容器中
public class BackendApp {
    public static void main(String[] args) {
        SpringApplication.run(BackendApp.class,args);
    }
}
